<%--
  Created by IntelliJ IDEA.
  User: Vadim
  Date: 11/7/14
  Time: 9:13 PM
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="x" uri="http://java.sun.com/jsp/jstl/xml" %>
<%@ page isELIgnored="false" %>

<html>
<head>
    <title>Blogs</title>

    <link href='/content/style/style.css' rel='stylesheet' />
    <script src="../content/scripts/jquery.min.js"></script>

</head>
<body>

<div id="container">
    <div id="header">
        <jsp:include page="/publicpages/common/header.jsp"/>
    </div>
    <div id="body">
        <div style="text-align: center;">
            <h1>List of blogs</h1>
        </div>
        <ul>
            <c:forEach var="item" items="${blogs}">
                <li>
                    <div style="display: inline-table; width: 100%;">
                        <div style="display: table-cell;float: left;">
                            <a href="/publicpages/blog_viewer.do?showBogId=${item.id}">${item.blogTitle}</a>
                        </div>
                    </div>
                </li>
            </c:forEach>
        </ul>
    </div>
    <div id="footer">
        <jsp:include page="/publicpages/common/footer.jsp"/>
    </div>
</div>
</body>
</html>
